package grape.crm.rest.customerrelation.mapper;

import grape.crm.service.customerrelation.po.CustomerRelation;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.crm.rest.customerrelation.form.CustomerRelationCreateForm;
import grape.crm.rest.customerrelation.form.CustomerRelationUpdateForm;
import grape.crm.rest.customerrelation.form.CustomerRelationListPageForm;
import grape.crm.rest.customerrelation.vo.CustomerRelationVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 客户关系表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface CustomerRelationWebMapper extends WebMapper<CustomerRelationVo, CustomerRelation> {

    CustomerRelation formToPo(CustomerRelationCreateForm f);
    CustomerRelation formToPo(CustomerRelationUpdateForm f);
    CustomerRelation formToPo(CustomerRelationListPageForm f);
}
